package com.mq.Mapper;

import com.mq.pojo.Tickets;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TicketMapper {
    @Insert("insert into tickets(order_id, passenger_name, id_card, ticket_price,seat_no) " +
            "VALUES (#{orderId},#{username},#{userId},#{price},1)")
    Tickets createTicket(Integer orderId, String username, Integer userId,Double price);
}
